package com.liuzhou.util;

import java.sql.SQLException;

import com.liuzhou.dao.UserDao;
import com.liuzhou.dao.impl.UserDaoImpl;
import com.liuzhou.model.User;

public class TestQeuryUser {

	public static void main(String[] args) throws SQLException {
		UserDao udDao = new UserDaoImpl();
		User user = new User();
		user.setName("111");
		user.setPassword("333");
		
		User result = udDao.queryUser(user);
		if(result ==null ) {
			System.out.println("没有查询结果");
		}else {
			
		System.out.println("查询到用户: ID:"+result.getId()
		+" 权限类型：【"+result.getLimit_type()
		+"】 用户名：【"+result.getName()
		+"】用户密码：【"+result.getPassword()+"】");		

		}
	}

}
